import server from "../utils/request.js";
export function queryAllShow(pageNum,pageSize){
    return server({
        url:`/residents/show/${pageNum}/${pageSize}`,
        method:'POST'
    })
}

export function queryByResidentId(residentId){
    return server({
        url:`/residents/queryByResidentId/${residentId}`,
        method:'POST'
    })
}

export function deleteResident(residentId){
    return server({
        url:`/residents/updateForDelete/${residentId}`,
        method:'POST'
    })
}

export function updateResident(resident){
    return server({
        url:'/residents/update',
        method:'POST',
        data:resident
    })
}

export function queryAllDetails(residentId){
    return server({
        url:`/residents/queryAllDetails/${residentId}`,
        method:'POST'
    })
}